import request from '@/utils/request'
export function getList(data, page) {
  return request({
    url: '/Wx_sell/sell_list/' + (page ? page : 1),
    method: 'post',
    data: data
  })
}

export function getPage(data) {
  return request({
    url: '/Wx_sell/sell_list_page',
    method: 'post',
    data: data
  })
}
// 上下架
export function set_sell_status(data) {
  return request({
    url: '/Wx_sell/set_sell_status',
    method: 'post',
    data: data
  })
}

export function get_coupons_list(data, page) {
  return request({
    url: '/Wx_sell/get_coupons_list/' + (page ? page : 1),
    method: 'post',
    data: data
  })
}

export function get_coupons_list_page(data) {
  return request({
    url: '/Wx_sell/get_coupons_list_page',
    method: 'post',
    data: data
  })
}
// 新增
export function sell_modify(data) {
  return request({
    url: '/Wx_sell/sell_modify',
    method: 'post',
    data: data
  })
}
// 详情
export function sell_info(data) {
  return request({
    url: '/Wx_sell/sell_info',
    method: 'post',
    data: data
  })
}
// 下一步弹窗
export function verify_selling(data) {
  return request({
    url: '/Wx_sell/verify_selling',
    method: 'post',
    data: data
  })
}


// 获取商品列表
export function goods_list(data,page) {
  return request({
    url: '/Wx_welfare/get_coupons_list/'+(page?page:1),
    method: 'post',
    data: data
  })
}

// 列表商品分页
export function goods_page(data) {
  return request({
    url: '/Wx_welfare/get_coupons_list_page',
    method: 'post',
    data: data
  })
}

// 保存分销
export function distribution_svea(data) {
  return request({
    url: '/Wx_sell/distribution_sell',
    method: 'post',
    data: data
  })
}
// 分销详情
export function distribution_info(data) {
  return request({
    url: '/Wx_sell/distribution_info',
    method: 'post',
    data: data
  })
}
// 分销详情
export function distribution_status(data) {
  return request({
    url: '/Wx_sell/distribution_status',
    method: 'post',
    data: data
  })
}